package com.mapper;

import com.entity.Book;
import com.entity.RequestParam;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;


@Mapper
public interface BookMapper {

    int deleteByPrimaryKey(Integer bookid);

    int insert(Book record);

    int insertSelective(Book record);

    Book selectByPrimaryKey(Integer bookid);

    int updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKey(Book record);

    List<Book> queryBooks(RequestParam req);

    Book queryOne(Integer id);

    Integer queryBooksNum(RequestParam req);
}